package com.hluck.criminalintent

import androidx.lifecycle.ViewModel
import com.hluck.criminalintent.model.Crime

/**
 *
 * @Author： LJH
 * @Time： 2023/11/18
 * @description：
 */
class CrimeListViewModel : ViewModel() {

    val crimes = mutableListOf<Crime>()

    init {
        for (i in 1..100) {
            val crime = Crime()
            crime.title = "Crime$i"
            crime.isSolved = i % 2 == 0
            crime.requiresPolice = i % 2 == 0
            crimes += crime
        }
    }

}